<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Logout extends CI_Controller {
	private $data = array();

	function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->model('process_data');
		$this->load->model('sessionfunctions');
		$this->load->helper('form');
	}


	public function index()
	{
		$this->sessionfunctions->logOut();
		redirect(base_url().'/home/index/');
	}

}
